package arch;

import java.net.URL;

import ks.framework.common.Message;
import ks.server.ServerContext;
import ks.server.ipc.Server;

/**
 * Registers all server-side components with Broker to support architecture
 * and launches executable.
 * 
 * @author George Heineman
 */
public class ServerArchitecture {

	/**
	 * Launch server app.
	 * 
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		// Determine the XML schema we are going to use
		Message.configure("ks.xsd", new URL("http://www.wpi.edu/~heineman/xml/ks.xsd"));
		
		Server srv = new Server(ServerContext.getAuthorizationManager());
	
		srv.activate();
	}
}
